<html>
<head>
    <title>
        Gestalt Sample: Attaching Events to DOM and Silverlight
    </title>
    <script src="../js/jquery.js" type="text/javascript"></script>
    <script src="../js/gestalt.js" type="text/javascript"></script>

</head>
<body>

<xml class="xaml" width="100" height="40">
    <Canvas>
        <Button x:Name="button1" Width="93" Height="29" Opacity="1" Content="Press Me!"></Button>
    </Canvas>
</xml>      

<p></p>

<button id="button2">Press Me!</button>

<script language="ruby">
document.button2.onclick do |s,e|
    document.button2.innerHTML = "Thanks!"
end

xaml.button1.Click do |s,e|
    xaml.button1.Content = "Thanks!"
end
</script>


</body>
</html>
    